package com.yzd.learnjava.net;

import java.net.HttpURLConnection;
import java.net.URL;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;

import sun.net.www.http.HttpClient;

public class UrlConnManager {
	 public static HttpURLConnection geHttpURLConnection(String url) {
		 HttpURLConnection mHttpURLConnection ;
		 sun.net.www.protocol.http.HttpURLConnection
		 HttpClient;
		 try {
			URL mUrl = new URL(url);
			mHttpURLConnection = (HttpURLConnection)mUrl.openConnection();
			mHttpURLConnection.connect();
		} catch (Exception e) {
			e.printStackTrace();
		}
		 
		 
//		 ArrayBlockingQueue<String>
//		 LinkedBlockingDeque<String>
//		 return mHttpURLConnection;
		 return null;
	 }
}
